package com.lian.community.dao.post;

public class PostPO {
    private Integer id;
    private String createTime;
    private String content;
    private String title;
    private Integer deleted;


    /**
     * 用来检验，暂时不写
     * @param contentLenght
     * @param titleLength
     * @return
     */
    public boolean insertValid(int contentLenght, int titleLength){
        return true;
    }

    public PostPO() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        return "PostPO{" +
                "id=" + id +
                ", createTime='" + createTime + '\'' +
                ", content='" + content + '\'' +
                ", title='" + title + '\'' +
                ", deleted=" + deleted +
                '}';
    }
}
